﻿using Domain.Entities.Stocks;
using FrameworkCore.Attributes;
using System.Text.Json.Serialization;

namespace AiBLSmartEdu.Module.SmartStockSense.API.DTOs;

#nullable disable

[Map(typeof(Stock))]
public class StockDto
{
    /// <summary>
    /// 股票代码
    /// </summary>
    [JsonPropertyName("dm")]
    public string StockCode { get; set; }

    /// <summary>
    /// 股票名称
    /// </summary>
    [JsonPropertyName("mc")]
    public string StockName { get; set; }

    /// <summary>
    /// 市场类型（如：沪市/深市）。
    /// </summary>
    [JsonPropertyName("jys")]
    public string Market { get; set; }
}
